﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cmsservice.Entity;
using cmsservice.DAL;
using System.Data.SqlClient;

namespace cmsservice.BLL
{
    public class PartnerBLL
    {       

        public PartnerEnty GetOneById(int id)
        {
            PartnerDAL dal = new PartnerDAL();
            return dal.GetOneById(id);
        }

        public List<PartnerType> GetAllandSort()
        {
            PartnerDAL dal = new PartnerDAL();
            return dal.GetAllandSort();   
        }

        public PartnerEnty GetOutUrlByNewsId(string newsid)
        {
            PartnerDAL dal = new PartnerDAL();
            return dal.GetOutUrlByNewsId(newsid);
        } 
    }
}
